package com.z6school.manage.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.z6school.manage.common.pojo.CheckBox;
import com.z6school.manage.common.pojo.RoleMenuVo;
import com.z6school.manage.po.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RolesMapper extends BaseMapper<Role> {

    List<Role> doFindObject(@Param("name") String name,
                                        @Param("startIndex")Integer startIndex,
                                        @Param("pageSize") Integer pageSize);

    long getRowCount(String name);

    RoleMenuVo findRoleMenuById(Integer id);

    @Select("select id,name from role")
    List<CheckBox> findCheckBoxObjects();

}
